package lzyc.pointsManagement.business.approval.controller;

import lzyc.pointsManagement.business.approval.domain.ApprovalInfo;
import lzyc.pointsManagement.business.approval.service.ApprovalInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (ApprovalInfo)表控制层
 *
 * @author yangyang
 * @since 2024-03-10 17:08:50
 */
@RestController
@RequestMapping("approvalInfo")
public class ApprovalInfoController {
    /**
     * 服务对象
     */
    @Resource
    private ApprovalInfoService approvalInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @PostMapping("selectOne")
    public ApprovalInfo selectOne(String id) {
        return this.approvalInfoService.queryById(id);
    }

}